package com.novix.portal.framework.dao;

import com.novix.portal.framework.dao.impl.DominoDAOFactory;

public abstract class DAOFactory {
    // List of DAO types supported by the factory
    public static final int DOMINO = 1;

    // There will be a method for each DAO that can be
    // created. The concrete factories will have to
    // implement these methods.

    public static DAOFactory getDAOFactory(int whichFactory) {
        switch (whichFactory) {
        case DOMINO:
            return new DominoDAOFactory();
        default:
            return null;
        }
    }

    public abstract IWebOrganizationDAO getWebOrganizationDAO();

    /**
     * @return
     */
    public abstract IWebContactDAO getWebContactDAO();

}
